﻿@model IEnumerable<HRM.DAL.DAO.Project>

@{
    ViewBag.Title = "Index";
}

<h2>Project Managment</h2>

<p  id="index-addlink">
    @Html.ActionLink("Create New Project", "Create")
</p>
<table class="view">
    <tr>
        <th>
            ProjectName
        </th>
        <th>
            startingDate
        </th>
        <th>
            ClosingDate
        </th>
        <th>
            TotalEmployee
        </th>
        <th>
            ProjectDescription
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ProjectName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.startingDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ClosingDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TotalEmployee)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ProjectDescription)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ProjectID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ProjectID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ProjectID })
        </td>
    </tr>
}

</table>
